import request from '@/utils/request'

// 查询代运营列表
export function listAgencyOperations(query) {
  return request({
    url: '/ecs/agencyOperations/list',
    method: 'get',
    params: query
  })
}

// 查询代运营详细
export function getAgencyOperations(id) {
  return request({
    url: '/ecs/agencyOperations/' + id,
    method: 'get'
  })
}

// 新增代运营
export function addAgencyOperations(data) {
  return request({
    url: '/ecs/agencyOperations',
    method: 'post',
    data: data
  })
}

// 修改代运营
export function updateAgencyOperations(data) {
  return request({
    url: '/ecs/agencyOperations',
    method: 'put',
    data: data
  })
}

// 删除代运营
export function delAgencyOperations(id) {
  return request({
    url: '/ecs/agencyOperations/' + id,
    method: 'delete'
  })
}
